<%@taglib uri="/WEB-INF/struts-html.tld"  prefix="html"%>
<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@taglib uri="/WEB-INF/struts-bean.tld"  prefix="bean"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<table cellpadding="1" cellspacing="1" width="100%">
    <tr class="netral2">
        <td width="100%" colspan="4"><bean:message key="label.tabel"/> <bean:message key="quiz.quiz"/></td>
    </tr>
    <tr align="center" class="header">
        <td><bean:message key="label.no"/></td>
        <td><bean:message key="quiz.open"/></td>
        <td><bean:message key="quiz.judul"/></td>
        <td><bean:message key="label.action"/></td>
    </tr>
    <logic:notEmpty name="listTitleQuizSiswa">
        <c:forEach var="listTitleQuizSiswa" items="${listTitleQuizSiswa}" varStatus="row">
            <c:if test="${(row.count) % 2 == 0}"><tr class="over"></c:if>
            <c:if test="${(row.count) % 2 != 0}"><tr class="down"></c:if>
                <td width="5%"><c:out value="${row.count}"/></td>
                <td width="5%">
                    <c:choose>
                        <c:when test="${listTitleQuizSiswa.open=='N' }"><html:link action="/quiz.do?action=quizOpenClose&flag=N" paramName="listTitleQuizSiswa" paramProperty="id" paramId="id" styleClass="noLink"><input type="checkbox"></html:link></c:when>
                        <c:otherwise><html:link action="/quiz.do?action=quizOpenClose&flag=Y" paramName="listTitleQuizSiswa" paramProperty="id" paramId="id" styleClass="noLink"><input type="checkbox" checked></html:link></c:otherwise>
                    </c:choose>
                </td>
                <td width="67%"><c:out value="${listTitleQuizSiswa.nama}"/></td>
                <td>
                    <html:link action="/quiz.do?action=quizDetail" paramName="listTitleQuizSiswa" paramProperty="id" paramId="id" styleClass="noLink">[ <bean:message key="label.detail"/> ]</html:link>
                    <html:link action="/quiz.do?action=quizEdit" paramName="listTitleQuizSiswa" paramProperty="id" paramId="id" styleClass="noLink">[ <bean:message key="label.edit"/> ]</html:link>
                    <html:link action="/quiz.do?action=quizDelete" paramName="listTitleQuizSiswa" paramProperty="id" paramId="id" styleClass="noLink">[ <bean:message key="label.delete"/> ]</html:link>
                </td>
            </tr>
        </c:forEach>
    </logic:notEmpty>
    <tr class="form">
        <td colspan="7">&nbsp;</td>
    </tr>
    <logic:empty name="listTitleQuizSiswa">
        <tr class="form">
            <td colspan="7" align="center"><bean:message key="quiz.quiz"/> <bean:message key="label.isEmpty"/></td>
        </tr>
    </logic:empty>
</table>